Skip to content

Release 16.10.2025 (Evening) - Facebook Pixel Tracking Fixes - #608

Merged
maxtechera merged 4 commits into
productionfrom
staging
Oct 16, 2025
Merged

Release 16.10.2025 (Evening) - Facebook Pixel Tracking Fixes#608
maxtechera merged 4 commits into
productionfrom
staging

Conversation

@maxtechera

Copy link
Copy Markdown
Collaborator

Release Summary

Hot-fix release addressing critical Facebook Pixel tracking issues and documentation improvements.

🐛 Bug Fixes

Facebook Pixel Tracking Implementation (#607)

  • Critical Fix: Corrected Facebook Pixel queue property from fbq.q to fbq.queue to match official implementation
  • Global PageView Tracking: Restored PageView tracking on all docs pages (not just webinar pages)
  • Form Event Fix: Changed form start tracking from Lead event to FormStarted custom event to prevent metric inflation
  • Queue Preservation: Fixed queue initialization to preserve existing events before script loads
  • Silent Operation: Removed all console logs from tracking service for production readiness

Technical Details:

  • Facebook Pixel was using incorrect queue property preventing events from firing
  • Added proper callMethod check and fbq.push assignment per Facebook spec
  • Events now properly queue and execute when fbevents.js loads
  • Form interactions use appropriate custom events (FormStarted, FormAbandonment)
  • CompleteRegistration event fires on actual form submissions

Documentation Improvements (#589)

  • Removed confusing pnpm start command from local development instructions
  • Clarified local development workflow

📊 Impact

  • ✅ Facebook Pixel Helper now properly detects pixel
  • ✅ Network requests to facebook.com/tr functioning correctly
  • ✅ PageView events fire on all documentation pages
  • ✅ Form tracking metrics accurate (no Lead inflation)
  • ✅ Silent operation with no console noise

🧪 Testing

  • Verified PageView fires on all docs pages
  • Verified Facebook Pixel Helper detection
  • Verified network requests to Facebook services
  • Verified FormStarted custom event (not Lead)
  • Verified CompleteRegistration on form submission
  • Confirmed silent operation (no console logs)

📝 Commits

🚀 Deployment Notes

No special deployment steps required. Changes are client-side tracking code that will take effect immediately upon deployment.


Release Date: October 16, 2025 (Evening)
Severity: High Priority (Tracking Fix)
Type: Hot-fix Release

maxtechera and others added 4 commits October 16, 2025 14:28
- Changed fbq.q initialization from [] to fbq.q || [] to preserve queue
- Added check to only initialize fbq if it doesn't exist
- Fixes issue where init and PageView calls were lost before script loaded
- Now all pages globally track PageView on load via Layout component
- Added [Tracking] prefix to all tracking logs for easy filtering
- Log initialization of each service (GA, LinkedIn, Facebook)
- Log all tracking calls (PageView, events, form interactions, registrations)
- Log when services are skipped due to missing config
- Makes debugging tracking issues much easier in dev and production
Co-authored-by: Cameron Taylor <50385537+ct3685@users.noreply.github.com>
…ing (#607)

## Summary
- Fixed Facebook Pixel queue property bug preventing events from firing
- Restored global PageView tracking on all docs pages
- Fixed form interaction tracking to use custom events instead of Lead
- Added comprehensive debugging logs for tracking verification

## Changes
- **Fixed critical bug**: Changed `fbq.q` to `fbq.queue` to match
official Facebook implementation
- **Added callMethod check**: Proper handling of queued events
before/after script load
- **Global PageView tracking**: PageView now fires on all docs pages via
Layout component
- **Form tracking fix**: Changed form start from Lead event to
FormStarted custom event
- **Enhanced debugging**: Added detailed console logs with `[Tracking]`
prefix for all initialization and events

## Test plan
- [x] Verify PageView fires on all docs pages (not just webinar pages)
- [x] Verify Facebook Pixel Helper detects the pixel
- [x] Verify network requests to facebook.com/tr appear
- [x] Verify FormStarted custom event fires (not Lead)
- [x] Verify CompleteRegistration fires on form submission
- [x] Check console logs show proper initialization and queue state

## Technical details
Facebook Pixel tracking was broken because we used `fbq.q` instead of
the official `fbq.queue` property. When fbevents.js loaded, it couldn't
find queued events. Now matches official Facebook stub implementation
exactly.
@vercel

vercel Bot commented Oct 16, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
answerai-docs Building Building Preview Oct 16, 2025 6:12pm
the-answerai Ready Ready Preview Oct 16, 2025 6:12pm

@maxtechera
maxtechera merged commit 9814238 into production Oct 16, 2025
8 of 9 checks passed
@maxtechera
maxtechera temporarily deployed to staging - aai-unified2-flowise-moonstruck October 16, 2025 18:18 — with Render Inactive
maxtechera added a commit that referenced this pull request Oct 23, 2025
## 📦 Release Summary

This release includes updates from staging to production, bringing
multiple improvements, fixes, and new features.

## 🎯 Key Changes

### Recent Updates
- **HOTFIX**: Remove metadata from Stripe events
- **fix**: Handle Stripe 35-day limitation for historical billing data
(#624)
- **chore**: Updates to fix publish automation (#623)
- **feat**: Added automation for publishing aai-embed-react (#616)
- **feat**: Comprehensive export/import functionality enhancement
(AAI-501) (#469)

### Previous Releases Included
- Billing Metadata Filtering - 22.10.2025 (#622)
- Chat Drawer Pagination - 22.10.2025 (#621)
- Billing Tag Self-Healing and Optimized Trace Fetching (#617)
- Facebook Pixel Tracking Fixes (#608)
- JLINC audit log, env overrides, and partnership page updates (#597)
- Analytics tracing, billing accuracy, and admin navigation fixes (#591)

## 📊 Impact Summary
- **Files changed**: 2956 files
- **Additions**: 312,083 lines
- **Deletions**: 25,803 lines

## ✅ Pre-Release Checklist

- [ ] All tests passing on staging environment
- [ ] No critical errors in staging logs
- [ ] Database migrations reviewed and tested
- [ ] Environment variables documented
- [ ] Monitoring alerts configured
- [ ] Rollback plan documented

## 🚀 Deployment Notes

This is a standard release from staging to production. Please ensure all
pre-release checks are completed before approving.

---
🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: DiegoC <diecoscai@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Cameron Taylor <50385537+ct3685@users.noreply.github.com>
Co-authored-by: Jaime Morales <jaime.raul.morales@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants